//路由配置
import Login from "@/pages/Login";
import Homepage from "@/pages/Homepage";
import Register from "@/pages/Register";

import {createBrowserRouter, Router} from 'react-router-dom'

//路由实例配置
const router=createBrowserRouter([
    {
        path:'/login',
        element: <Login />
    },
    {
        path: '/register',
        element: <Register />
    },
    {
        path: '/',
        element: <Homepage />
    },
])
export default router